package ui.activity.mine;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button;

import com.jakewharton.rxbinding.view.RxView;

import net.ck.hzq.R;

import java.util.concurrent.TimeUnit;

import base.BaseAct;
import butterknife.BindView;
import event.NetErrorEvent;


/**
 * 提现密码设置成功页面
 * Created by chenjian on 2017/8/4.
 */

public class PayPwdSuccessAct extends BaseAct {


    @BindView(R.id.pay_success_submit)
    Button submit;

    @Override
    protected void setRoot() {
        setContentView(R.layout.activity_pay_pwd_success);
    }

    @Override
    protected void setup() {
        setToolBar(getResources().getString(R.string.lang_pay_pwd), "");
    }

    @Override
    protected void init(@Nullable Bundle savedInstanceState) {
        RxView.clicks(submit)
                .compose(this.<Void>bindToLifecycle())
                .throttleFirst(500, TimeUnit.MILLISECONDS)
                .subscribe(Void -> finish());
    }

    @Override
    public void onNetErrorEvent(NetErrorEvent event) {
        super.onNetErrorEvent(event);
    }

    @Override
    protected void onNetError(NetErrorEvent event) {

    }
}
